package per.hx.bs.entity.yw;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import per.hx.bs.base.entity.BaseEntity;

import java.io.Serializable;

/**
 * @author HuXing
 * @date 2018/4/16  8:03
 */
@TableName("yw_appraisal_user")
public class YwAppraisalUserDO extends BaseEntity {
    @TableId
    private Long addId;
    private Long userId;

    public YwAppraisalUserDO(Long userId) {
        this.userId = userId;
    }

    public YwAppraisalUserDO() {
    }

    public Long getAddId() {
        return addId;
    }

    public void setAddId(Long addId) {
        this.addId = addId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "YwAppraisalUserDO{" +
                "addId=" + addId +
                ", userId=" + userId +
                '}';
    }

    @Override
    protected Serializable pkVal() {
        return this.addId;
    }
}
